<!DOCTYPE html >
<html>
<head>
<meta name="Generator" content="TPshop v1.1" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>我的动态</title>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<!-- <link rel="stylesheet" href="__ROOT__ /AI_radar/css/footer.css"> -->
<link rel="stylesheet" href="__ROOT__ /AI_radar/css/font_my/iconfont.css">
<link rel="stylesheet" href="__ROOT__ /AI_radar/css//my/dynamic.css">
<script type="text/javascript" src="__ROOT__ /AI_radar/js/token.js"></script>

</head>
<body>
	{include file="public/wx_share" /}
	<div class="dynamic">
		<div class="dynamicZ">
			<div class="dynamicTop">
				<div class="dynamicTops">
					<div class="dynamicTopL">
						<p class="dynamicTopP1 dynamicTopM dynamicGj">新华杨科技</p>
						<p class="dynamicTopP2 dynamicGq">四川新华杨科技有限公司</p>
						<p class="dynamicTopP1 dynamicTopMar dynamicName"></p>
						<p class="dynamicTopP2 dynamicX"></p>
					</div>
					<div class="dynamicTopR"><img src="__ROOT__ /AI_radar/image/my/styleMy.jpg" alt="" class="dynamicHeadImg"></div>
				</div>
				<div class="dynamicBottom">
					<p class="dynamicTopP2 dynamicTopMar">电话：<span class="dynamicPhone"></span></p>
					<p class="dynamicTopP2">邮箱：<span class="dynamicEamil"></span></p>
				</div>
			</div>
			
			<div class="dynamicBot">
				<div class="dynamicBotL">
					<span class="dynamicName">张三</span>的二维码
				</div>
				<div class="dynamicBotR"><i class='iconfont icon-erweima'></i>  <i class='iconfont icon-arrow-right-copy'></i></div>

			</div>
		</div>

	</div>
	<div class="tants">
	    <div class="ttz">
	      <div class="ttzt">我的太阳码</div>
	      <div class="ttzdiv">
	      	<div class="ttzdivImg">
	      		<img src="__ROOT__ /AI_radar/image/my/ty.png" alt="">
	      	</div>
	      </div>
	      <div class="ttzBtn"><i class="iconfont icon-cha ttzG"></i></div>
	    </div>
	  </div>

<script src='__ROOT__ /AI_radar/js/jquery.js'></script>
<script type="text/javascript">

	//获取个人信息
	$.ajax({
	    url:window.urls.url + "/my/oneself/info",
	    type:"POST",
	    contentType: "application/json",
	    dataType:"json",
	    data:JSON.stringify({
	        token:window.tokens.token_boss,
	    }),
	    success:function(res){
	        // console.log(res)
	        // console.log(res.data)
	        if(res.data){
	        	if(res.data.userimg){
	        		document.querySelector(".dynamicHeadImg").src = res.data.userimg.url
	        	}
	        	if(res.data.name){
	        		$(".dynamicName").html(res.data.name)
	        	}
	        	if(res.data.position){
	        		$(".dynamicX").html(res.data.position)
	        	}
	        	if(res.data.card){
	        		if(res.data.card.phone){
	        			$(".dynamicPhone").html(res.data.card.phone);
	        		}
	        		if(res.data.card.email){
	        			$(".dynamicEamil").html(res.data.card.email);
	        		}
	        		if(res.data.card.company){
	        			$(".dynamicGq").html(res.data.card.company);
	        		}
	        	}
	        }
	    },
	    error:function(res){
	        console.log(res)
	    }
  	})
  	//获取二维码
  	acquireAjax(49)
  	function acquireAjax(id){
        $.ajax({
            url:"https://minitest.17jxyx.com/api/v1/member/qrcode/" + id,
            // url:window.urls.url + "/member/qrcode/" + id,
            
            type:"GET",
            contentType: "application/json",
            dataType:"json",
            beforeSend: function (request) {
                request.setRequestHeader('token', window.tokens.token_boss);
            },
            success:function(res){
              console.log(res)
              console.log(res.url)


              document.querySelector(".radarImg").src = res.url

              
            },
            error:function(res){
              console.log(res)
            }
        });
    }

	$(".dynamicBotR").click(function(){
	    $(".tants").css("display","block")
	})
	$(".ttzBtn").click(function(){
	    $(".tants").css("display","none")
	})

	// console.log($)

</script>
</body>
</html>